/*
  Labotronik EthernetWifi Switch
  Copyright (C) 2012 Marc Chapdelaine

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP

#include <QDialog>


QT_BEGIN_NAMESPACE
class QAction;
class QDialogButtonBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QMenu;
class QMenuBar;
class QPushButton;
class QTextEdit;
class QRadioButton;
class QStatusBar;
class QIcon;
class QPixmap;
QT_END_NAMESPACE

class MainWindow : public QDialog {
	Q_OBJECT

public:
	MainWindow();
	~MainWindow();
	

private slots:

	void quit();
	void displayHelp();
	void displayAbout();
	
	void switchToEthernet(bool enabled);
	void switchToWifi(bool enabled);

protected:
	void createMenu();
	void createGridGroupBox();
	//void createStatusBar();
	
private:
	QMenuBar* menuBar;
	QMenu* fileMenu;
	QMenu* helpMenu;
	
	//QStatusBar* statusBar;
	QPixmap* labotronikLogo;
	QLabel* labotronikLogoLabel;
	QLabel* ipLabel;
	QLineEdit* ipAddressField;

	QGroupBox* gridGroupBox;
	
	QAction* exitAction;
	QAction* helpAction;
	QAction* aboutAction;
	
	QRadioButton* ethernetButton;
	QRadioButton* wifiButton;
};

#endif // MAINWINDOW_HPP
